package org.jash.shop2112.entity

import org.jash.shop2112.utils.bus

data class Category(
    val category_icon: String,
    val category_name: String,
    val `data`: List<Category>,
    val id: Int,
    val parent_id: Int
) {
    fun showSubCategory() {
        bus.postValue("showSubCategory" to data)
    }
    fun showProduct() {
        bus.postValue("showProduct" to id)
    }
}